package com.qww.exec22;

/**
 * @author qww
 * @date 2021-04-05 21:37
 */
public class Exec22 {

    public static void main(String[] args) {
        Currency c = Currency.FIFTY;
        switch (c) {
            case ONE:
                System.out.println("1"); break;
            case FIVE:
                System.out.println("2"); break;
            case TEN:
                System.out.println("10"); break;
            case TWENTY:
                System.out.println("20"); break;
            case FIFTY:
                System.out.println("50"); break;
            default:
                System.out.println("100"); break;
        }
    }

}

enum Currency {
    ONE, FIVE, TEN, TWENTY, FIFTY, ONE_HUNDRED;

    void f(int a) {
        System.out.println(a);
    }
}
// 50
